﻿@model string
@{
    ViewBag.Title = "Cloud Storage Light ";
    Layout = "~/Views/Shared/_LayoutCloudStorage.cshtml";

    RouteValueDictionary queryStringDictionary = new RouteValueDictionary(Request.QueryString.AllKeys.ToDictionary(key => key, key => (object)Request.QueryString[key]));
    bool disableLogin = CloudStorageLight.Core.SystemSettings.Instance.DisableLogin;
}

<header class="nrm nlm">

    <div class="clearfix bg-darkBlue fg-white" id="header-cont">
        <div class="place-right">
            <div class="margin10">
                <i class="icon-user" style="font-size:medium;"></i>
                <a id="logoff" href="@Url.Action("LogOff", "Account")"><i class="icon-exit" title="logoff" style="background:white;color:blue;padding:10px;border-radius:50%"></i></a>
            </div>

        </div>
        <div class="place-left margin10">

            <nav class="horizontal-menu">
                <ul>
                    @Html.Partial("_HomeCommand")
                </ul>
            </nav>
        </div>
    </div>
</header>
<div id="login-form-div">
    <h3>@string.Format(CloudStorageLight.Core.Web.ViewMessages.MsgPleaseCredentials,Model)</h3>
    @using (Html.BeginForm(null, null, queryStringDictionary, FormMethod.Post))
    {
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })

        <div class="container">

            <div style="margin:20px;">
                <div class="row-same-height">
                    <span class="col-md-2 control-label">@(CloudStorageLight.Core.Web.ViewMessages.MsgUserName)</span>
                    <div class="col-md-4">
                        @Html.TextBox("user", "", new { @class = "form-control" })
                        @Html.ValidationMessage("user", "", new { @class = "text-danger" })
                    </div>
                </div>
                <div class="row-same-height">
                    <span class="col-md-2 control-label">@(CloudStorageLight.Core.Web.ViewMessages.MsgPassword)</span>
                    <div class="col-md-4">
                        @Html.Password("password", "", new { @class = "form-control" })
                        @Html.ValidationMessage("password", "", new { @class = "text-danger" })
                    </div>
                </div>
                <div class="row-same-height">
                    <div class="col-md-2">
                    </div>
                    <div class="col-md-4">
                        <button id="login" type="submit" class="primary">
                            @CloudStorageLight.Core.Web.ViewMessages.MsgExecute
                        </button>
                    </div>
                </div>
            </div>
        </div>
    }
</div>





